<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <script type="text/javascript">
            function add()
            {
                alert('<?php echo ($list[3]["user_password"]); ?>');
                window.location='BOOK.html';
            }
        </script>
    </head>
    <body>
    <input type="text" name="test
    " value=<?php echo ($list[7]["user_address"]); ?>>
    <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div id="list"></div>
<form action="" method="POST" id="frm">
 标题：<input type="text" name="title" value=<?php echo ($vo["user_id"]); ?> /><br />
 信息：<input type="text" name="message" value=<?php echo ($vo["user_password"]); ?>  /><br />
 返回：<input type="text" name="test" value=<?php echo ($mydata["1"]["article_title"]); ?>/><br/>
 <input type="hidden" name="ajax" value="1">


 

    <input type="submit" value="提交" onclick="add()" />

</form><?php endforeach; endif; else: echo "" ;endif; ?>
<h3>textarea自适应高度</h3> 
<textarea style='border: 1px solid #94BBE2;width:100%; background-color: #F5F5F3' rows=15 onpropertychange='this.style.posHeight=this.scrollHeight' id=textarea onfocus='textarea.style.posHeight=this.scrollHeight'  id="area"></textarea> 
    </body>
</html>